package Java_高级教程;

import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;

public class Java_ArrayList {
    public static void main(String [] args){
        ArrayList<String> sites=new ArrayList<String>();
        sites.add("BaiDu");
        sites.add("BiliBili");
        sites.add("Tencent");
        sites.set(0,"yuanke");
        sites.add(2,"ssss");
        Collections.sort(sites);
        for (String list:sites){
            System.out.println(list);
        }
    }
}
